package com.gxa.pingan.exception;

import com.gxa.pingan.common.ExceptionCode;

/**
 * @author YXQ
 * @date 2021/10/25 20:30
 */
public class BusinessException extends Exception{
    private final ExceptionCode exceptionCode;

    public ExceptionCode getExceptionCode() {
        return exceptionCode;
    }

    public BusinessException(ExceptionCode exceptionCode) {
        super(exceptionCode.getMessage());
        this.exceptionCode = exceptionCode;
    }
}
